package dk.dashboardFP.panels.tempPanel {
	import dk.dashboardFP.shapes.Box;
	import dk.dashboardFP.panels.subPanels.ui.windowSubPanelUI.WindowContentEvent;
	import dk.dashboardFP.panels.fontPreview.FontPreview;
	import dk.dashboardFP.panels.subPanels.ui.windowSubPanelUI.IWindowContent;

	import flash.display.Sprite;
	import flash.geom.Point;
	import flash.text.Font;

	/**
	 * @author josef
	 */
	public class FontPreviewContent extends Sprite implements IWindowContent {
		private var _countY : int;
		private var _back : Box;

		public function FontPreviewContent() {
			
			setupContent();
		}

		private function setupContent() : void {
			
			_countY=5;
			
			for each (var font : Font in Font.enumerateFonts()) {
				var fontPreview:FontPreview=new FontPreview(font);
				addChild(fontPreview);
				
				fontPreview.x= 5;
				fontPreview.y = _countY;
				
				_countY += fontPreview.height+15;
			}
			
			// init 
			dispatchEvent(new WindowContentEvent(WindowContentEvent.CONTENT_DIMENTIONS_CHANGE));
		}

		public function setWindowDimentions(pWindowDimentions : Point) : void {
		}
		
		public function set nWindowWidth(nWindowWidth : Number) : void {
		}
		
		public function set nWindowHeight(nWindowHeight : Number) : void {
		}
	}
}
